﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace easyList
{
    public partial class InputSourceWindow : Form
    {
        public InputSourceWindow()
        {
            InitializeComponent();
        }

        private void OKButton_Click(object sender, EventArgs e)
        {
            Program.laststoreID = this.sourceIDInputText.Text;
            this.Close();
        }


        private void sourceIDInputText_KeyPress(object sender, KeyPressEventArgs e)
        {
            //if Enter is pressed continue
            char keyPressed = e.KeyChar;
            if (keyPressed == '\r')
            {
                Program.laststoreID = this.sourceIDInputText.Text;
                this.Close();
            }
        }

        private void InputSourceWindow_Load(object sender, EventArgs e)
        {
            this.sourceIDInputText.Text = Program.laststoreID;
        }

       
    }
}
